import request from '@/views/utils/request'
// 月卡列表
export function cardList(params) {
  return request({
    url: 'parking/card/list',
    params
  })
}

// 添加月卡
export function addCard(data) {
  return request({
    url: 'parking/card',
    method: 'post',
    data
  })
}

// 编辑月卡
export function editCard(data) {
  return request({
    url: 'parking/card/edit',
    method: 'put',
    data
  })
}
// 查看月卡信息
export function cardInfo(id) {
  return request({
    url: `parking/card/${id}`,
    method: 'get'
  })
}
// 删除月卡
export function deleteCard(ids) {
  return request({
    url: `parking/card/${ids}`,
    method: 'delete'
  })
}
